﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/backend.Master" AutoEventWireup="true" CodeBehind="EditArticle.aspx.cs" Inherits="webnhom.backend.EditArticle" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h4 class="alert_info">Đăng bài viết</h4>
<div class="module width_full">
    <table cellpadding="0" cellspacing="10" width="100%">
        <tr>
            <td>Tiêu đề</td>
            <td><asp:TextBox ID="txtArticleName" runat="server" Width="700px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"
                                    ErrorMessage="Tiêu đề" ControlToValidate="txtArticleName" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr> 
        <tr>
            <td>Phân loại</td>
            <td><asp:DropDownList runat="server" ID="droPhanLoai">
                    <asp:ListItem Value="TT">Tin tức</asp:ListItem>
                    <asp:ListItem Value="TDCT">Theo dòng cuộc thi</asp:ListItem>
                    <asp:ListItem Value="TVNN">Tư vấn nghề nghiệp</asp:ListItem>
                    <asp:ListItem Value="TVTD">Tư vấn tuyển dụng</asp:ListItem>
                </asp:DropDownList></td>
        </tr>        
        <tr>
            <td>Images</td>
            <td><asp:FileUpload ID="FileUpload_Images" runat="server" />                
                <asp:RegularExpressionValidator ID="ktraanhnho" runat="server" 
                                        ErrorMessage="File không phải hình ảnh!" ControlToValidate="FileUpload_Images" 
                                        ForeColor="Red" 
                                        ValidationExpression="^([0-9a-zA-Z_\-~. :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td valign="top">Tóm tắt</td>
            <td><asp:TextBox ID="txtDescription" runat="server" Width="800px" Height="100px" TextMode="MultiLine"></asp:TextBox></td>
        </tr>
        <tr>
            <td valign="top">Nội dung</td>
            <td>
                <CKEditor:CKEditorControl ID="CKContent" runat="server" Width="100%" Height="500px"></CKEditor:CKEditorControl>
            </td>
        </tr>        
        <tr>
            <td>Trạng thái</td>
            <td><asp:DropDownList ID="dropSate" runat="server">
                <asp:ListItem Value="0">Duyệt</asp:ListItem>
                <asp:ListItem Value="1">Chờ duyệt</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btSave" runat="server" CssClass="buttonNew" Text="Lưu lại" 
                    onclick="btSave_Click" />
                <asp:Button ID="btCancel" runat="server" CssClass="buttonCancel" Text="Hủy bỏ" 
                    onclick="btCancel_Click" />
            </td>
        </tr>
    </table>
</div>
</asp:Content>
